<?php
/*
 * @Author: CHINAKAIYUAN<sunkaiyuan@namenode.cn>
 * @Date: 2022-02-07 19:30:43
 * @LastEditTime: 2023-07-28 09:42:40
 * @LastEditors: 孙开源 && sunkaiyuan@namenode.cn
 * @Description: 
 */

namespace App\Http\Properties\System;

use OpenApi\Annotations\Property;
use OpenApi\Annotations\Schema;
use App\Http\Properties\Properties;

/**
 *
 * @Schema(
 *     title="用户属性",
 *     description="用户属性"
 * )
 *
 * @package App\Http\Properties\User
 */
class UserProperties extends Properties
    {
    /**
     * @Property(
     *     type="integer",
     *     description="用户ID"
     * )
     *
     * @var int
     */
    public $id;

    /**
     * @Property(
     *     type="string",
     *     description="用户名"
     * )
     *
     * @var string
     */
    public $username;

    /**
     * @Property(
     *     type="string",
     *     description="姓名"
     * )
     *
     * @var string
     */
    public $name;
    /**
     * @Property(
     *     type="string",
     *     description="性别"
     * )
     *
     * @var string
     */
    public $sex;
    /**
     * @Property(
     *     type="string",
     *     description="个人标签"
     * )
     *
     * @var string
     */
    public $about;
    /**
     * @Property(
     *     type="string",
     *     description="邮箱地址"
     * )
     *
     * @var string
     */
    public $email;
    /**
     * @Property(
     *     type="string",
     *     description="手机号"
     * )
     *
     * @var string
     */
    public $phone;
    /**
     * @Property(
     *     type="array",
     *     description="头像"
     * )
     *
     * @var string
     */
    public $attachments;
    /**
     * @Property(
     *     type="string",
     *     description="头像"
     * )
     *
     * @var string
     */
    public $avatar;
    /**
     * @Property(
     *     type="string",
     *     description="员工ID"
     * )
     *
     * @var string
     */
    public $employee_id;
    /**
     * @Property(
     *     type="string",
     *     description="部门ID"
     * )
     *
     * @var string
     */
    public $department_id;
    /**
     * @Property(
     *     type="string",
     *     description="部门"
     * )
     *
     * @var string
     */
    public $department;
    public static function department()
        {
        return DepartmentProperties::class;
        }
    }